package com.stx.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@Data
@TableName("r_match")
@EqualsAndHashCode
public class Match {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;//比赛编号
    private Integer ruaId;//活动编号
    private Integer plaId;//选手编号
    private String matDeclaration;//宣言
    private Double matScore;//总分
    private Integer matSequence;//演讲顺序
    private String matName;//选手姓名
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime matDate;//创建时间
    @TableField(exist = false)
    private String avatar;
    @TableField(exist = false)
    private Integer total;
    @TableField(exist = false)
    private String plaDepartment;
    @TableField(exist = false)
    private String plagender;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRuaId() {
        return ruaId;
    }

    public void setRuaId(Integer ruaId) {
        this.ruaId = ruaId;
    }

    public Integer getPlaId() {
        return plaId;
    }

    public void setPlaId(Integer plaId) {
        this.plaId = plaId;
    }

    public String getMatDeclaration() {
        return matDeclaration;
    }

    public void setMatDeclaration(String matDeclaration) {
        this.matDeclaration = matDeclaration;
    }

    public Double getMatScore() {
        return matScore;
    }

    public void setMatScore(Double matScore) {
        this.matScore = matScore;
    }

    public Integer getMatSequence() {
        return matSequence;
    }

    public void setMatSequence(Integer matSequence) {
        this.matSequence = matSequence;
    }

    public String getMatName() {
        return matName;
    }

    public void setMatName(String matName) {
        this.matName = matName;
    }

    public LocalDateTime getMatDate() {
        return matDate;
    }

    public void setMatDate(LocalDateTime matDate) {
        this.matDate = matDate;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public String getPlaDepartment() {
        return plaDepartment;
    }

    public void setPlaDepartment(String plaDepartment) {
        this.plaDepartment = plaDepartment;
    }

    public String getPlagender() {
        return plagender;
    }

    public void setPlagender(String plagender) {
        this.plagender = plagender;
    }

    @Override
    public String toString() {
        return "Match{" +
                "id=" + id +
                ", ruaId=" + ruaId +
                ", plaId=" + plaId +
                ", matDeclaration='" + matDeclaration + '\'' +
                ", matScore=" + matScore +
                ", matSequence=" + matSequence +
                ", matName='" + matName + '\'' +
                ", matDate=" + matDate +
                ", avatar='" + avatar + '\'' +
                ", total=" + total +
                ", plaDepartment='" + plaDepartment + '\'' +
                ", plagender='" + plagender + '\'' +
                '}';
    }
}
